package cn.ydw.www.plugin_mudule;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import cn.ydw.www.plugin_lib.PluginBaseActivity;

public class MainModuleActivity extends PluginBaseActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_module_main_jump).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(proxyAct, SecondModuleActivity.class);
                intent.putExtra("test", "测试值");
                startActivity(intent);
            }
        });

        Button btnOther = findViewById(R.id.btn_module_main_jumpOther);
        btnOther.setVisibility(View.VISIBLE);
        btnOther.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(proxyAct, ThirdModuleActivity.class));
            }
        });
    }
}
